projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66a63fe
)
rockchip: rk3368: syscon: SGRF support for OF_PLATDATA
author
Philipp Tomsich
<
[email protected]
>
Fri, 28 Jul 2017 09:37:57 +0000
(11:37 +0200)
committer
Philipp Tomsich
<
[email protected]
>
Sun, 13 Aug 2017 15:12:22 +0000
(17:12 +0200)
In TPL we will need to configure security in the SGRF of the RK3368.
This change adds support for the SGRF as a syscon device, so we can
retrieve its address range through the syscon API in TPL (and can
avoid having to hard-code the address).
Signed-off-by: Philipp Tomsich <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
b/arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
index 90a993e0c783645185a6eb63d138acfd51fd3576..99d51f0edc0ff431c65860fe6616f30b3f79ea4b 100644
(file)
--- a/
arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
+++ b/
arch/arm/mach-rockchip/rk3368/syscon_rk3368.c
@@
-18,6
+18,8
@@
static const struct udevice_id rk3368_syscon_ids[] = {
.data = ROCKCHIP_SYSCON_PMUGRF },
{ .compatible = "rockchip,rk3368-msch",
.data = ROCKCHIP_SYSCON_MSCH },
+ { .compatible = "rockchip,rk3368-sgrf",
+ .data = ROCKCHIP_SYSCON_SGRF },
{ }
};
@@
-56,4
+58,11
@@
U_BOOT_DRIVER(rockchip_rk3368_msch) = {
.of_match = rk3368_syscon_ids + 2,
.bind = rk3368_syscon_bind_of_platdata,
};
+
+U_BOOT_DRIVER(rockchip_rk3368_sgrf) = {
+ .name = "rockchip_rk3368_sgrf",
+ .id = UCLASS_SYSCON,
+ .of_match = rk3368_syscon_ids + 3,
+ .bind = rk3368_syscon_bind_of_platdata,
+};
#endif